package com.bella.api.utils;

public class ApiMessage {

	public interface API {
		String ERROR = "api.error";
	}

	/**
	 * 从Error对象获取国际化资源定义key 
	 * 
	 * @param status
	 * 
	 * @return String
	 */
	public static String getApiMessageKey(ApiResponseCode status) {
		return String.format("%s.%s.%s", API.ERROR, status.getCode(),
				status.getMessage());
	}
}
